// <copyright file="ButtonTypeRadio.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;

namespace YUIAspNetDemo.Button
{
    public partial class ButtonTypeRadio : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.btn.Click += new EventHandler<YUIAspNet.ButtonEventArgs>(btn_Click);
        }

        void btn_Click(object sender, YUIAspNet.ButtonEventArgs e)
        {
            this.lblState.Text = "";

            this.lblState.Text += "We eat: " + this.rblFood.SelectedValue;
            this.lblState.Text += "<br />";
            this.lblState.Text += "We drink: " + this.rblDrink.SelectedItem.Text;
        }
    }
}
